/*
 * Copyright (c) 2013 XDream
 * Copyright (c) 2013 bruceshu <shuhuan.bruce@gmail.com>
 * 2024-8-7
 */

#include "ExtractorFactory.h"

std::unique_ptr<IExtractor> ExtractorFactory::create(int id, ExtractorType type = ExtractorType::FFMPEG)
{
    std::unique_ptr<IExtractor> extrator = nullptr;
    switch (type)
    {
    case ExtractorType::FFMPEG:
        extrator = std::make_unique<IExtractor>(id);
        break;

    default:
        break;
    }

    return extrator;
}

